package com.oepm.common.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Result {
    private boolean flag;//是否成功
    private Integer code;// 返回码
    private String msg;//返回信息
    private Object data;// 返回数据

    public Result(Meta meta) {
        this.flag = meta.flag;
        this.code = meta.code;
        this.msg = meta.msg;
    }
    public Result(Meta meta, Object data) {
        this.flag = meta.flag;
        this.code = meta.code;
        this.msg = meta.msg;
        this.data = data;
    }

    public Result(Integer code,  String msg,boolean flag) {
        this.code = code;
        this.msg = msg;
        this.flag = flag;
    }

}
